package com.kurtphpr.sistemas.cliente;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean(name = "BeanCliente")
@SessionScoped
public class ClienteBean {
	Cliente cliente = new Cliente();
	ClienteDAO clienteDao = new ClienteDAO();
	
	public Cliente getCliente() {
		return cliente;
	}

	public void setCliente(Cliente cliente) {
		this.cliente = cliente;
	}

	public String Salvar(){
		System.out.println("Nome Cliente: " + cliente.getNome());
		clienteDao.salvar(cliente);
		return "ok";
	}
}
